<?php 
 return array(
'module_name'=>'admin',//代码生成的应用目录  注:这里需根据实际情况手动配置
'tableName'=>'ptf_wx_user',//表名必填
'tableCnName'=>'微信公共帐号',//表中文名必填  注:这里需根据实际情况手动配置

'priTable'=>'ptf_privilege',//权限表名必填   注:这里需根据实际情况手动配置


//表中的主键字段
'pri_key'=>'id',
/*********TP5验证规则********/
'validate_rule'=>"array(
		'member_id'=>'require|number',
		'wxname' => 'max:60',
		'aeskey' => 'max:256',
    		'appid' => 'max:50',
		'appsecret' => 'max:50',
		'wxid' => 'max:64',
		'weixin' => 'require|max:64',
		'headerpic' => 'require|max:255',
		'token' => 'require|max:255',
		'w_token' => 'max:150',
		'tplcontentid' => 'max:2',
		'share_ticket' => 'max:150',
		'share_dated' => 'require|max:15',
		'authorizer_access_token' => 'max:200',
		'authorizer_refresh_token' => 'max:200',
		'authorizer_expires' => 'require|max:10',
    		'web_access_token' => 'max:200',
		'web_refresh_token' => 'max:200',
		'web_expires'=>'require|number',
		'qr' => 'max:200',
    	)",
/*********TP5验证规则错误提示信息********/
'validate_message'=>"array(
		'member_id.require'=>'uid不能为空',
		'member_id.number'=>'uid的值必须是一个整数',
		'wxname.max'=>'公众号名称的值不能超过60个字符',
		'aeskey.max'=>'aeskey的值不能超过256个字符',
		'appid.max'=>'appid的值不能超过50个字符',
		'appsecret.max'=>'appsecret的值不能超过50个字符',
		'wxid.max'=>'公众号原始ID的值不能超过64个字符',
		'weixin.require'=>'微信号不能为空',
		'weixin.max'=>'微信号的值不能超过64个字符',
		'headerpic.require'=>'头像地址不能为空',
		'headerpic.max'=>'头像地址的值不能超过255个字符',
		'token.require'=>'token不能为空',
		'token.max'=>'token的值不能超过255个字符',
		'w_token.max'=>'微信对接token的值不能超过150个字符',
		'tplcontentid.max'=>'内容模版ID的值不能超过2个字符',
		'share_ticket.max'=>'分享ticket的值不能超过150个字符',
		'share_dated.require'=>'share_dated不能为空',
		'share_dated.max'=>'share_dated的值不能超过15个字符',
		'authorizer_access_token.max'=>'authorizer_access_token的值不能超过200个字符',
		'authorizer_refresh_token.max'=>'authorizer_refresh_token的值不能超过200个字符',
		'authorizer_expires.require'=>'authorizer_expires不能为空',
		'authorizer_expires.max'=>'authorizer_expires的值不能超过10个字符',
		'web_access_token.max'=>' 网页授权token的值不能超过200个字符',
		'web_refresh_token.max'=>'web_refresh_token的值不能超过200个字符',
		'web_expires.require'=>'过期时间不能为空',
		'web_expires.number'=>'过期时间的值必须是一个整数',
		'qr.max'=>'qr的值不能超过200个字符',
)",
/**************TP5的验证场景****************/
'validate_scene'=>"array(
		'add'=>array('member_id','wxname','aeskey','encode','appid','appsecret','wxid','weixin','headerpic','token','w_token','tplcontentid','share_ticket','share_dated','authorizer_access_token','authorizer_refresh_token','authorizer_expires','type','web_access_token','web_refresh_token','web_expires','qr','menu_config','wait_access'),
		'edit'=>array('id','member_id','wxname','aeskey','encode','appid','appsecret','wxid','weixin','headerpic','token','w_token','tplcontentid','share_ticket','share_dated','authorizer_access_token','authorizer_refresh_token','authorizer_expires','type','web_access_token','web_refresh_token','web_expires','qr','menu_config','wait_access'),
	)",

/*********生成动态表单的字段配置信息********/
/**
	注意:每个表的配置这里的表单字段需要根据实际情况手动修改
**/
'form_fields'=>array(
		'member_id'=>array(
			'text'=>'uid',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>1,
			'placeholder'=>'请输入uid',
			'validate'=>'datatype="n"  errormsg="uid是数字类型"',
		),
		'wxname'=>array(
			'text'=>'公众号名称',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>0,
			'placeholder'=>'请输入公众号名称',
			'validate'=>'datatype="s2-60" ignore="ignore"  errormsg="公众号名称超出长度范围"',
		),
		'aeskey'=>array(
			'text'=>'aeskey',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>0,
			'placeholder'=>'请输入aeskey',
			'validate'=>'datatype="s2-256" ignore="ignore"  errormsg="aeskey超出长度范围"',
		),
		'encode'=>array(
			'text'=>'encode',
			'type'=>'radio',
			'is_visible'=>1,
			'required'=>1,
			'placeholder'=>'请选择encode',
			'validate'=>'datatype="*"  nullmsg="请选择encode"',
					'values'=>array('否','是'),
	),
		'appid'=>array(
			'text'=>'appid',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>0,
			'placeholder'=>'请输入appid',
			'validate'=>'datatype="s2-50" ignore="ignore"  errormsg="appid超出长度范围"',
		),
		'appsecret'=>array(
			'text'=>'appsecret',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>0,
			'placeholder'=>'请输入appsecret',
			'validate'=>'datatype="s2-50" ignore="ignore"  errormsg="appsecret超出长度范围"',
		),
		'wxid'=>array(
			'text'=>'公众号原始ID',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>0,
			'placeholder'=>'请输入公众号原始ID',
			'validate'=>'datatype="s2-64" ignore="ignore"  errormsg="公众号原始ID超出长度范围"',
		),
		'weixin'=>array(
			'text'=>'微信号',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>1,
			'placeholder'=>'请输入微信号',
			'validate'=>'datatype="s2-64"  errormsg="微信号超出长度范围"',
		),
		'headerpic'=>array(
			'text'=>'头像地址',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>1,
			'placeholder'=>'请输入头像地址',
			'validate'=>'datatype="s2-255"  errormsg="头像地址超出长度范围"',
		),
		'token'=>array(
			'text'=>'token',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>1,
			'placeholder'=>'请输入token',
			'validate'=>'datatype="s2-255"  errormsg="token超出长度范围"',
		),
		'w_token'=>array(
			'text'=>'微信对接token',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>0,
			'placeholder'=>'请输入微信对接token',
			'validate'=>'datatype="s2-150" ignore="ignore"  errormsg="微信对接token超出长度范围"',
		),
		'tplcontentid'=>array(
			'text'=>'内容模版ID',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>0,
			'placeholder'=>'请输入内容模版ID',
			'validate'=>'datatype="s2-2" ignore="ignore"  errormsg="内容模版ID超出长度范围"',
		),
		'share_ticket'=>array(
			'text'=>'分享ticket',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>0,
			'placeholder'=>'请输入分享ticket',
			'validate'=>'datatype="s2-150" ignore="ignore"  errormsg="分享ticket超出长度范围"',
		),
		'share_dated'=>array(
			'text'=>'share_dated',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>1,
			'placeholder'=>'请输入share_dated',
			'validate'=>'datatype="s2-15"  errormsg="share_dated超出长度范围"',
		),
		'authorizer_access_token'=>array(
			'text'=>'authorizer_access_token',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>0,
			'placeholder'=>'请输入authorizer_access_token',
			'validate'=>'datatype="s2-200" ignore="ignore"  errormsg="authorizer_access_token超出长度范围"',
		),
		'authorizer_refresh_token'=>array(
			'text'=>'authorizer_refresh_token',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>0,
			'placeholder'=>'请输入authorizer_refresh_token',
			'validate'=>'datatype="s2-200" ignore="ignore"  errormsg="authorizer_refresh_token超出长度范围"',
		),
		'authorizer_expires'=>array(
			'text'=>'authorizer_expires',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>1,
			'placeholder'=>'请输入authorizer_expires',
			'validate'=>'datatype="s2-10"  errormsg="authorizer_expires超出长度范围"',
		),
		'type'=>array(
			'text'=>'类型',
			'type'=>'radio',
			'is_visible'=>1,
			'required'=>1,
			'placeholder'=>'请选择类型',
			'validate'=>'datatype="*"  nullmsg="请选择类型"',
					'values'=>array('否','是'),
	),
		'web_access_token'=>array(
			'text'=>' 网页授权token',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>0,
			'placeholder'=>'请输入 网页授权token',
			'validate'=>'datatype="s2-200" ignore="ignore"  errormsg=" 网页授权token超出长度范围"',
		),
		'web_refresh_token'=>array(
			'text'=>'web_refresh_token',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>0,
			'placeholder'=>'请输入web_refresh_token',
			'validate'=>'datatype="s2-200" ignore="ignore"  errormsg="web_refresh_token超出长度范围"',
		),
		'web_expires'=>array(
			'text'=>'过期时间',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>1,
			'placeholder'=>'请输入过期时间',
			'validate'=>'datatype="n"  errormsg="过期时间是数字类型"',
		),
		'qr'=>array(
			'text'=>'qr',
			'type'=>'text',
			'is_visible'=>1,
			'required'=>0,
			'placeholder'=>'请输入qr',
			'validate'=>'datatype="s2-200" ignore="ignore"  errormsg="qr超出长度范围"',
		),
		'menu_config'=>array(
			'text'=>'菜单',
			'type'=>'textarea',
			'is_visible'=>0,
			'required'=>0,
			'placeholder'=>'请输入菜单',
			'validate'=>'  errormsg="菜单超出长度范围"',
		),
		'wait_access'=>array(
			'text'=>'微信接入状态,0待接入1已接入',
			'type'=>'radio',
			'is_visible'=>1,
			'required'=>1,
			'placeholder'=>'请选择微信接入状态,0待接入1已接入',
			'validate'=>'datatype="*"  nullmsg="请选择微信接入状态,0待接入1已接入"',
					'values'=>array('否','是'),
	),
        ),


/*********搜索字段配置信息********/
'search'=>array(
        '-1'=>array(
            'field'=>'id',
            'type'=>'text',
            'required'=>1, //required为1必须搜索
            'comment'=>'ID',
    ),

			'0'=>array(
            'field'=>'member_id',
            'type'=>'text',
            'required'=>1,
            'comment'=>'uid',
        ),
			'1'=>array(
            'field'=>'wxname',
            'type'=>'text',
            'required'=>0,
            'comment'=>'公众号名称',
        ),
			'2'=>array(
            'field'=>'aeskey',
            'type'=>'text',
            'required'=>0,
            'comment'=>'aeskey',
        ),
			'3'=>array(
            'field'=>'appid',
            'type'=>'text',
            'required'=>0,
            'comment'=>'appid',
        ),
			'4'=>array(
            'field'=>'appsecret',
            'type'=>'text',
            'required'=>0,
            'comment'=>'appsecret',
        ),
			'5'=>array(
            'field'=>'wxid',
            'type'=>'text',
            'required'=>0,
            'comment'=>'公众号原始ID',
        ),
			'6'=>array(
            'field'=>'weixin',
            'type'=>'text',
            'required'=>1,
            'comment'=>'微信号',
        ),
			'7'=>array(
            'field'=>'headerpic',
            'type'=>'text',
            'required'=>1,
            'comment'=>'头像地址',
        ),
			'8'=>array(
            'field'=>'token',
            'type'=>'text',
            'required'=>1,
            'comment'=>'token',
        ),
			'9'=>array(
            'field'=>'w_token',
            'type'=>'text',
            'required'=>0,
            'comment'=>'微信对接token',
        ),
			'10'=>array(
            'field'=>'tplcontentid',
            'type'=>'text',
            'required'=>0,
            'comment'=>'内容模版ID',
        ),
			'11'=>array(
            'field'=>'share_ticket',
            'type'=>'text',
            'required'=>0,
            'comment'=>'分享ticket',
        ),
			'12'=>array(
            'field'=>'share_dated',
            'type'=>'text',
            'required'=>1,
            'comment'=>'share_dated',
        ),
			'13'=>array(
            'field'=>'authorizer_access_token',
            'type'=>'text',
            'required'=>0,
            'comment'=>'authorizer_access_token',
        ),
			'14'=>array(
            'field'=>'authorizer_refresh_token',
            'type'=>'text',
            'required'=>0,
            'comment'=>'authorizer_refresh_token',
        ),
			'15'=>array(
            'field'=>'authorizer_expires',
            'type'=>'text',
            'required'=>1,
            'comment'=>'authorizer_expires',
        ),
			'16'=>array(
            'field'=>'web_access_token',
            'type'=>'text',
            'required'=>0,
            'comment'=>' 网页授权token',
        ),
			'17'=>array(
            'field'=>'web_refresh_token',
            'type'=>'text',
            'required'=>0,
            'comment'=>'web_refresh_token',
        ),
			'18'=>array(
            'field'=>'web_expires',
            'type'=>'text',
            'required'=>1,
            'comment'=>'过期时间',
        ),
			'19'=>array(
            'field'=>'qr',
            'type'=>'text',
            'required'=>0,
            'comment'=>'qr',
        ),
			),

/*********详情字段配置信息********/
'view'=>array(
    '0'=>[
        'comment'=>'表id',
        'field'=>'id',
    ],
    '1'=>[
        'comment'=>'uid',
        'field'=>'member_id',
    ],
    '2'=>[
        'comment'=>'公众号名称',
        'field'=>'wxname',
    ],
    '3'=>[
        'comment'=>'aeskey',
        'field'=>'aeskey',
    ],
    '4'=>[
        'comment'=>'encode',
        'field'=>'encode',
    ],
    '5'=>[
        'comment'=>'appid',
        'field'=>'appid',
    ],
    '6'=>[
        'comment'=>'appsecret',
        'field'=>'appsecret',
    ],
    '7'=>[
        'comment'=>'公众号原始ID',
        'field'=>'wxid',
    ],
    '8'=>[
        'comment'=>'微信号',
        'field'=>'weixin',
    ],
    '9'=>[
        'comment'=>'头像地址',
        'field'=>'headerpic',
    ],
    '10'=>[
        'comment'=>'token',
        'field'=>'token',
    ],
    '11'=>[
        'comment'=>'微信对接token',
        'field'=>'w_token',
    ],
    '12'=>[
        'comment'=>'create_time',
        'field'=>'create_time',
    ],
    '13'=>[
        'comment'=>'updatetime',
        'field'=>'updatetime',
    ],
    '14'=>[
        'comment'=>'内容模版ID',
        'field'=>'tplcontentid',
    ],
    '15'=>[
        'comment'=>'分享ticket',
        'field'=>'share_ticket',
    ],
    '16'=>[
        'comment'=>'share_dated',
        'field'=>'share_dated',
    ],
    '17'=>[
        'comment'=>'authorizer_access_token',
        'field'=>'authorizer_access_token',
    ],
    '18'=>[
        'comment'=>'authorizer_refresh_token',
        'field'=>'authorizer_refresh_token',
    ],
    '19'=>[
        'comment'=>'authorizer_expires',
        'field'=>'authorizer_expires',
    ],
    '20'=>[
        'comment'=>'类型',
        'field'=>'type',
    ],
    '21'=>[
        'comment'=>' 网页授权token',
        'field'=>'web_access_token',
    ],
    '22'=>[
        'comment'=>'web_refresh_token',
        'field'=>'web_refresh_token',
    ],
    '23'=>[
        'comment'=>'过期时间',
        'field'=>'web_expires',
    ],
    '24'=>[
        'comment'=>'qr',
        'field'=>'qr',
    ],
    '25'=>[
        'comment'=>'菜单',
        'field'=>'menu_config',
    ],
    '26'=>[
        'comment'=>'微信接入状态,0待接入1已接入',
        'field'=>'wait_access',
    ],
),

);?>